/**
 *
 */
package com.naiterui.ehp.bs.doctor.dao.impl;

import com.naiterui.ehp.bp.domain.ConsultBill;
import com.naiterui.ehp.bs.doctor.dao.IConsultBillDao;
import com.naiterui.ehp.bs.doctor.repository.IConsultBillRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 账单持久层
 * @author guoyongxiang
 * @since 2.0.0
 */
@Repository
public class AdConsultBillDaoImpl implements IConsultBillDao {

    @Autowired
    private IConsultBillRepository consultBillRepository;

    @Override
    public Long save(ConsultBill consultBill){
        consultBill = consultBillRepository.save(consultBill);
        return consultBill.getId();
    }
}
